export type VideoCategory = "电影" | "电视剧" | "综艺" | "动漫" | "纪录片" | "其他" | number;

export interface VideoItem {
  id: string;
  title: string;
  coverUrl: string;
  durationSeconds: number;
  category: VideoCategory;
  description?: string;
  publishedAt?: string; // ISO string
  sourceUrl?: string; // m3u8/mp4 等
  createdAt?: string; // ISO string
  updatedAt?: string; // ISO string
  averageRating?: number; // 平均评分
  ratingCount?: number; // 评分人数
  userRating?: number; // 当前用户的评分
  isFavorite?: boolean; // 是否收藏
}

export interface CategoryItem {
  id: string;
  name: string;
  description?: string;
  coverUrl: string;
  createdAt?: string; // ISO string
  updatedAt?: string; // ISO string
  videoCount?: number; // 该分类下的视频数量
}


